{% load static %}
<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>{% block title %}{% endblock %}</title>
    <!-- <link rel="stylesheet" href="http://necolas.github.com/normalize.css/8.0.1/normalize.css"> -->
    <link rel="stylesheet" href="/static/css/normalize.css">
    <link rel="stylesheet" href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css">
</head>

<body>
    <div class="container">
        <nav class="navbar navbar-default" role='navigation'>
            <div class="navbar-header">
                <a href="http://www.itdiffer.com" class="navbar-brand">
                    <img src="{% static '/images/logo.png' %}" alt="LOGO" width="100">
                </a>
            </div>
            <div>
                <ul class="nav navbar-nav" role='navigation'>
                    <li>
                        <a href="{% url 'blog:blog_title' %}">BLOG</a>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right" style="margin-right: 10px;">
                    {% if user.is_authenticated %}
                    <li><a href="#">{{ user.username }}</a></li>
                    <li><a href="{% url 'account:user_logout' %}">LOGOUT</a></li>
                    {% else %}
                    <li><a href="{% url 'account:user_login' %}">LOGIN</a></li>
                    {% endif %}
                </ul>
            </div>
        </nav>
    </div>
    <div class="container">
        {% block content %}
        {% endblock %}
    </div>
    <div class="container">
        <hr>
        <p class="text-center">Copyright www.itdiffer.com</p>
    </div>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</body>

</html>